package Event.daliy;

import Creature.Player;
import Event.Story;

/**
 * 日常事件，街头卖艺获取固定金钱，降低体力值  乞讨获取不定数量金钱  图书馆看书提升精神值
 */

public class Dailyevent2 extends Story {



    public Dailyevent2(Player player) {
        super(player);

        eventName = "日常事件";
        happenText = "经过上午的努力，你接下来打算去";
        options = new String[]{"街头卖艺", "乞讨", "图书馆看书 "};
    }


    @Override
    public void eventHappen(int option) {
        switch (option) {
            case 0:
                endText = "你给大伙表演了唱跳rap，大伙的san值被降低了，纷纷丢硬币给你让你加油，你备受鼓舞，跳的更卖力了";
                player.setMoney(player.getMoney() + 100);
                player.setSan(player.getSan() + 5);
                player.setHungry(player.getHungry() - 15);
                break;
            case 1:
                endText = "你在大街上坐着，戴上墨镜，边上放着一块牌子，春天来了，可我却看不见";
                player.setMoney(player.getMoney() + 80);
                break;
            case 2:
                endText = "你去浣熊图书馆和小姐姐聊天去了";
                player.setSan(player.getSan() + 15);
                break;
        }
    }

    @Override
    public boolean canHappen(Player player) {
        return true;
    }
}



